#include <iostream>
#include <iomanip>
#include <algorithm>

using namespace std;

int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);

    int n;
    cin >> n;

    double min_x = 1e18, max_x = -1e18;
    double min_y = 1e18, max_y = -1e18;

    for (int i = 0; i < n; ++i) {
        double x, y;
        cin >> x >> y;
        min_x = min(min_x, x);
        max_x = max(max_x, x);
        min_y = min(min_y, y);
        max_y = max(max_y, y);
    }

    double width = max_x - min_x;
    double height = max_y - min_y;
    double area = width * height;

    cout << fixed << setprecision(5) << area << '\n';

    return 0;
}